function channelServiceF(){
    service.call(this);
    this.url="/api/channel";

    var _this = this;

    this.updateTranslate=function (url,params,callback){
        return _HTTP.post(this.url+url,params,callback);
    };

    this.exchangeChannel=function (url,params,callback) {
        return _HTTP.post(this.url+url,params,callback);
    }

    this.batchSaveChannel=function (url,params,callback) {
        return _HTTP.post(this.url+url,params,callback);
    }

    this.clearChannelByDeviceId=function (url,params,callback) {
        return _HTTP.delete(this.url+url,params,callback);
    }

    this.addVirtual=function (url,params,callback) {
        return _HTTP.post(this.url+url,params,callback);
    }

    this.initPull=function (url,params,callback) {
        return _HTTP.post(this.url+url,params,callback);
    }

    this.reductionChannel=function (url,params,callback) {
        return _HTTP.post(this.url+url,params,callback)
    }

    this.getChannelList=function (url,params,callback) {
        return _HTTP.get(this.url+url,params,callback)
    }

    this.getPageChannelList=function (url,params,callback) {
        return _HTTP.post(this.url+url,params,callback)
    }

}
var channelService = new channelServiceF();
